<template>
  <div class="recommend">
    <div v-for='item in recommends' class="recommend-item">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    name: "HomeRecommend",
    props: {
      recommends: {
        type: Array,
        default () {
          return []
        }
      }
    }
  }

</script>

<style>
*{
    padding: 0;
    margin: 0;
  }
.recommend{
  display: flex;
  width: 100%;
  text-align: center;
  padding: 0.625rem 0 1.25rem;
  border-bottom: 0.5rem solid #eee;
}
.recommend-item{
  flex: 1;
}
.recommend-item img{
  width: 4.0625rem;
  height: 4.0625rem;
  margin-bottom: 0.625rem;
}
</style>
